package com.friend.joey.applicationfriend.Classes;

import java.io.Serializable;

/**
 * Created by Joey on 2017/5/28.
 */

public class Article implements Serializable {
    //TODO 将artcile 放入工具类中
    /**
     *
     */
    private static final long serialVersionUID = 1L;

    private int id;
    private String title;
    private String content;
    //检索结果中保存该文章的评分
    private float score;

    public Article () {
        //java bean 别忘了无参构造函数
    }
    public Article (int id, String title, String content) {
        setId(id);
        setTitle(title);
        setContent(content);
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }
}
